/* 整体 */
.homePage{
    
    width: 1200px;
    margin: 0 auto; 
    /* height: 2000px; */
    
} 
.horizentalFlex{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
/* 头部 */
.head{
    width: 100%;
    height: 55px;
    border-radius: 10px;
    background: linear-gradient(to bottom,rgb(224, 39, 73),rgb(210, 92, 118));
    display: flex;
    margin-bottom: 15px;
}
.head::after {
    display: table;
    clear: both;              
  }

.firstPage{
    /* float: left; */
    width: 120px;
    height: 45px;
    background-color: white;
    border-radius: 6px 6px 0 0;
    align-self: flex-end;
    
    font-weight: bold;
    font-size: 25px;
    color: rgb(209,47,77);

    display: flex;
    justify-content: center;   
    align-items: center; 
}
.head > ul{
    float: right;
    margin-left: auto;
    list-style: none;      
    display: flex;          
    gap: 10px; 
}

.head ul li:not(:last-child){
    display: flex;
    justify-self: center;
    align-items: center;
    height: 100%;
    width: 60px;
    border-right: 1px solid white;
    color: white;
    font-size: 15px;
}
.head ul li:last-child{
    display: flex;
    justify-self: center;
    align-items: center;
    height: 100%;
    width: 60px;
    color: white;
    font-size: 15px;
    margin-right: 15px;
}
/* 主页左边 */
.games{
    width: 72%;
    height: 1065px;
    
}
/* 游戏推荐 */
.rank{
    display: flex;
}
.rank > ul{
    margin-top: 0px;
    padding-left: 0px;
    width: 230px;
    height: 245px;
    border: 1px solid #a4a0a0; /* 添加边框 */
    border-radius: 8px; /* 设置圆角 */
    overflow: hidden;
}
.rank > ul li{
    
    display: flex;
    align-items: center;
    height: 35px;
    line-height: 35px;
    background: linear-gradient(to bottom,rgb(255, 255, 255),rgb(212, 210, 210));

    
    position: relative; /* 添加相对定位，为伪元素提供参考 */
}
.rank > ul li a{
    text-decoration: none;
    color: rgb(33, 31, 31);
    
     width: 100%; /* 确保 a 标签宽度为 100% */
    height: 100%; /* 确保 a 标签高度为 100% */
    position: relative; /* 添加相对定位，确保内容在正确位置 */
    z-index: 1; /* 确保 a 标签在伪元素之上 */
    
}
.rank > ul li::after{
    content:"<";
    margin-left: auto;
    margin-right: 10px;
    color: rgb(122, 120, 120);
    position: relative; /* 添加相对定位，确保在正确位置 */
    z-index: 2; /* 确保箭头在 a 标签之上 */
}

.rank > ul li img{
    margin-right: 10px;
    margin-left: 10px;
    vertical-align: middle;
}
.rank li:hover{
    background: linear-gradient(#f59b70,#dc5414);
}
.rank li:hover::after{
    color: white;
}



/* 推荐 */
.recommend img{
height: 230px;
}
.recommend{
    position: relative;;
    align-items: center;
    height: 230px;
    border-radius: 8px; 
    overflow: hidden;
    margin-left: 10px;
    margin-top: 10px;
}
.recommend > ul{
    display: flex;
    text-decoration: none;
    margin-top: 0px;
    padding-left: 0px;
    position: absolute;
    bottom: 0px;
    right: 25px;
    gap: 8px;
}
.recommend > ul li:not(:first-child){
    list-style-type: none;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    border-radius: 50%;
    background-color: #c5c8c0;
    color: #352424;
}
.recommend > ul li:first-child{
     list-style-type: none;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    border-radius: 50%;
    background-color: #b52018;
    color: white;
}
/* 游戏 */
.category{
    width: 855px;
    height: 250px;
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid #a4a0a0; 
}
.category>div{
    width: 100%;
    height: 35px;
    display: flex;
    background: linear-gradient(to bottom,#f8f8fa,#f2f2f2);
    border-bottom: #a4a0a0; 
}
.title>a{
    text-decoration: none;
    color: #841010;
    margin-left: 10px;
    margin-right: 15px;
    font-weight: 700;
    line-height: 35px;
}
.gameNav{
    display: flex;
    list-style-type: none;
    margin-top: 0px;
    padding-left: 0px;
    gap: 15px;
    
}
.gameNav >li> a{
    text-decoration: none;
    color: rgba(64, 64, 64, 0.482);
    line-height: 35px;
}

/* 推荐游戏 */
.game1 li{
     width: 360px;
    height: 175px;
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid #a4a0a0; 
    
}
.game1{
    margin-top: 0px;
    padding-left: 0px;
    height: 216px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.game1>li>img{
    margin-top: 25px;
    margin-left: 10px;
    margin-right: 10px;
    width: 151px;
    height: 117px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.game1>li>img:hover{
    transform: translateX(-10px);
}
.text{
    font-size: small;
    width: 183px;
    margin-top: 17px;
}

.select{
    width: 50px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    
    border: 1px solid #a4a0a0; 
    border-radius: 5px;
    color: #a4a0a0;
    margin-right: 10px;

}
.inGame{
    width: 84px;
    height: 34px;
    display: flex;
    
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    border: 1px solid #7498bb; 
    border-radius: 5px;
    color: white;
    background: linear-gradient(to bottom,#7cc2d0,#376d9d);
}

/* 角色扮演 */
.rolePlayGames{
    width: 855px;
    height: 490px;
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid #a4a0a0; 
    margin-top: 20px;
}
.rolePlayGames>div{
    width: 100%;
    height: 35px;
    display: flex;
    background: linear-gradient(to bottom,#f8f8fa,#f2f2f2);
    border-bottom: #a4a0a0; 
}

.rolePlayGames>ul{
    padding:0; 
    margin: 0; 
    list-style: none;

}
.roleGame1{
    font-size: small;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 25%;
    box-sizing: border-box;
    
}
.roleGame1>div>img{
    width: 165px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.roleGame1>div>img:hover{
    transform: translateX(-10px);
}
.roleArange{
    display: flex;
    flex-wrap: wrap;
    /* gap: 10px; */
    padding: 20px;
    justify-content: center;  
}

/* 主页右边*/
.otherServices{
    width: 27%;
    height: 1065px;
    /* background-color: rgb(102, 147, 133); */
    
}
/* 登录 */
.login{
    width: 100%;
    height: 245px;
    border:1px solid #a4a0a0;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    
}

.login a{
    text-decoration: none;
    color: #5780b6;
    margin-right: 20px;
}
.butt{
     background-color: #cd1937;
    color: white;
    padding: 3px 12px;
    border: 3px solid white;
    outline: 1px solid #cd1937;
    cursor: pointer;
    
}
.butt+div{
    margin-top: 10px;
}
.loginTitle{
    margin-top: 20px;
    margin-bottom: 20px;
    color: #92837f;
    margin-left: -105px;
    
    
}


/* 新闻公告 */
.news{
    width: 100%;
    height: 250px;
    margin-top: 20px;
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid #a4a0a0; 
}

.newsTitle{
    width: 100%;
    height: 35px;
    display: flex;
    background: linear-gradient(to bottom,#f8f8fa,#f2f2f2);
    border-bottom: #a4a0a0; 
}
.newsTitle>a{
    text-decoration: none;
    color: #841010;
    margin-left: 10px;
    margin-right: 15px;
    font-weight: 700;
    line-height: 35px;
}
.news>ul{
    cursor: pointer;
    padding:0; 
    margin: 0; 
    list-style: none;

}
.news>ul li:not(:last-child){
    display: flex;
    align-items: center;
    height: 29px;
    border-bottom:2px dashed #a4a0a0;
    font-size: 14px;
    
}
.news>ul li:last-child{
    display: flex;
    align-items: center;
    height: 29px; 
    font-size: 14px;
    color:#5a5656;
}
.news>ul li::before{
    content: ">>";
    color: #587ea7;
    margin-left: 10px;
    margin-right: 20px;
}
.news a{
    text-decoration: none;
    color:#5a5656;
}
.news>ul li:hover{
    transform: translateY(-5px) scale(1.1);
}
/* 微博 */
.weiBo{
    width: 100%;
    margin-top: 10px;
}
.weiBo img{
    margin-top: 15px;
}
/* 游戏视频 */
.gamesViedos{
    
    width: 100%;
    height: 247px;
    margin-top: 20px;
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid #a4a0a0; 
}
.gameVieTitle{
     width: 100%;
    height: 35px;
    display: flex;
    background: linear-gradient(to bottom,#f8f8fa,#f2f2f2);
    border-bottom: #a4a0a0; 
}
.gameVieTitle>a{
    text-decoration: none;
    color: #841010;
    margin-left: 10px;
    margin-right: 15px;
    font-weight: 700;
    line-height: 35px;
}
.gameVieExa{
    display: flex;
    justify-content: center;
    
}
.gameVieExa>:first-child{
    border-bottom: 1px dashed #a4a0a0;
}
.gameVieExa>span{
    width: 150px;
    font-size: 15px;
     color: #587ea7;
      margin-top: 15px;
}
.gameVieExa>img{
    margin-top: 10px;
    
    margin-right: 10px;
    margin-bottom: 10px;
}
/* 悬浮图片 */
.topImg{
    top: 300px;
    position: fixed;
    right: 0;
}
.topImg>img{
    width: 200px;
}
.topImg>div{
    position: absolute;
    top: -18px;
    right: 0px;
    width: 20px;
    height: 20px;
    background-color: rgb(122, 120, 120,0.5);
    text-align: center;
    line-height: 20px;
}
/* 底部 */
footer{
    width: 100%;
    font-size: small;
}
footer a{
    margin-right: 10px;
    text-decoration: none;
    color: #5780b6;
}